// 版权归 瞄你个汪 所有。使用本代码应遵守相关法律法规和Apache 2.0开源许可要求。
package top.geeke.entity;

import com.baomidou.mybatisplus.annotation.DbType;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import top.geeke.entity.base.EntityBaseId;
import top.geeke.eunm.SysStatusEnum;
import top.geeke.toolkit.supertable.annotation.SuperColumn;
import top.geeke.toolkit.supertable.annotation.SuperIndex;
import top.geeke.toolkit.supertable.annotation.SuperTable;

import java.io.Serializable;

/**
 * <p>
 * 系统代码生成表
 * </p>
 * @author 瞄你个汪
 * @since 2024-05-01 12:00:00
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName(value = "sys_code_gen")
@SuperTable(value = "系统代码生成表", isSystem = true, indexes = {
        @SuperIndex(indexName ="sys_index_{table}_B", indexFields ="busName"),
        @SuperIndex(indexName ="sys_index_{table}_T", indexFields ="tableName"),
})
public class SysCodeGen extends EntityBaseId implements Serializable {
    private static final long serialVersionUID = 1L;

    @SuperColumn(value = "作者姓名", length = 32, nullable = true)
    private String authorName;

    @SuperColumn(value = "是否移除表前缀", length = 8, nullable = true)
    private String tablePrefix;

    @SuperColumn(value = "生成方式", length = 32, nullable = true)
    private String generateType;

    @SuperColumn(value = "库配置ID", length = 64, nullable = true)
    private String configId;

    @SuperColumn(value = "数据库名", length = 64, nullable = true)
    private String dbName;

    @SuperColumn(value = "数据库类型", nullable = true)
    private DbType dbType;

    @SuperColumn(value = "数据库连接符", nullable = true)
    private String connectionString;

    @SuperColumn(value = "数据库表名", length = 128, nullable = true)
    private String tableName;

    @SuperColumn(value = "包路径", length = 128, nullable = true)
    private String packageName;

    @SuperColumn(value = "业务名", length = 128, nullable = true)
    private String busName;

    @SuperColumn(value = "菜单ID")
    private Long menuPid;

    @SuperColumn(value = "支持打印类型", length = 32, nullable = true)
    private String printType;

    @SuperColumn(value = "打印模板名称", length = 32, nullable = true)
    private String printName;

    @SuperColumn(value = "状态")
    private SysStatusEnum status = SysStatusEnum.Enabled;

    @SuperColumn(value = "排序", defaultValue = "100")
    private Integer orderNo = 100;

    @SuperColumn(value = "备注", nullable = true, length = 128)
    private String remark;
}
